import api from '@/api/index.ts'

// 获取列表
export function GetData(params: any) {
  return api.get('/api/living/list', { params })
}
// 创建预约直播间
export function PostCreateLiving(params: any) {
  return api.post('/api/living/livingcreate', params)
}
// 获取列表
export function GetDetail(id: any) {
  return api.get(`/api/living/detail?livingid=${id}`)
}
// 更新预约直播间
export function PostModifyLiving(params: any) {
  return api.post('/api/living/livingmodify', params)
}
// 取消预约直播间
export function PostCancelLiving(params: any) {
  return api.post('/api/living/livingcancel', params)
}

// 删除直播
export function deleteLiving(id: any) {
  return api.delete(`/api/living/delete/${id}`)
}
